package com.daka.dao;

import com.daka.entity.Volunteer;
import com.daka.mybatis.SQLMapper;
import com.daka.vo.request.GroupRecruitVolunteerVo;
import com.daka.vo.request.VolunteerRequestVo;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository(value = "volunteerMapper")
@SQLMapper
public interface VolunteerMapper {


    int insert(Volunteer record);

    int updateByPrimaryKeySelective(Volunteer record);

    Volunteer selectByPrimaryKey(long id);

    Volunteer selectByStatement(Volunteer record);

    List<Volunteer> selectByGroupId(VolunteerRequestVo po);
    int selectByGroupIdCount(VolunteerRequestVo po);

    List<Volunteer> selectByRecruitPage(GroupRecruitVolunteerVo po);
    int selectByRecruitPageCount(GroupRecruitVolunteerVo po);

    List<Volunteer> selectByRecruit(GroupRecruitVolunteerVo po);

    List<Volunteer> queryByGroupId(VolunteerRequestVo po);

    List<Volunteer> selectManager(long groupId);
}